package pe.com.grupobbva;

public class ServiceGenericTxProxy implements pe.com.grupobbva.ServiceGenericTx_PortType {
  private String _endpoint = null;
  private pe.com.grupobbva.ServiceGenericTx_PortType serviceGenericTx_PortType = null;
  
  public ServiceGenericTxProxy() {
    _initServiceGenericTxProxy();
  }
  
  public ServiceGenericTxProxy(String endpoint) {
    _endpoint = endpoint;
    _initServiceGenericTxProxy();
  }
  
  private void _initServiceGenericTxProxy() {
    try {
      serviceGenericTx_PortType = (new pe.com.grupobbva.ServiceGenericTx_ServiceLocator()).getServiceGenericTxSOAP();
      if (serviceGenericTx_PortType != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)serviceGenericTx_PortType)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)serviceGenericTx_PortType)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (serviceGenericTx_PortType != null)
      ((javax.xml.rpc.Stub)serviceGenericTx_PortType)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public pe.com.grupobbva.ServiceGenericTx_PortType getServiceGenericTx_PortType() {
    if (serviceGenericTx_PortType == null)
      _initServiceGenericTxProxy();
    return serviceGenericTx_PortType;
  }
  
  public pe.com.grupobbva.EjecutarTransaccionGenericaPS9Rs ejecutarTransaccionGenericaPS9(pe.com.grupobbva.EjecutarTransaccionGenericaPS9Rq ejecutarTransaccionGenericaPS9Rq) throws java.rmi.RemoteException{
    if (serviceGenericTx_PortType == null)
      _initServiceGenericTxProxy();
    return serviceGenericTx_PortType.ejecutarTransaccionGenericaPS9(ejecutarTransaccionGenericaPS9Rq);
  }
  
  
}